package com.nix.web.databases.service.user;

import com.nix.web.databases.mapper.user.PermissionsMapper;
import com.nix.web.databases.pojo.user.Permissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Create by zhangpe0312@qq.com on 2017/12/16.
 */
@Service
public class PermissionService implements PermissionsMapper{

    @Autowired
    private PermissionsMapper permissionsMapper;

    @Override
    public List<Permissions> getPermissionAllByRoleID(Integer rid, Integer available) throws Exception {
        return permissionsMapper.getPermissionAllByRoleID(rid,available);
    }

    @Override
    public boolean add(Permissions permissions) throws Exception {
        return false;
    }

    @Override
    public boolean delete(Integer id) throws Exception {
        return false;
    }

    @Override
    public boolean update(Permissions permissions) throws Exception {
        return false;
    }

    @Override
    public Permissions select(Integer id) throws Exception {
        return null;
    }
}
